package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.attach.Attach;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface AttachRepository {

    /**
     * 获取附件
     *
     * @param orderId
     * @return
     */
    List<Attach> getByOrderId(Long orderId);

    /**
     * 获取合同附件
     *
     * @param contractId
     * @return
     */
    List<Attach> getByContractId(Long contractId);

    /**
     * 根据id查询
     *
     * @param attachId
     * @return
     */
    Attach getById(Long attachId);
}
